package com.qmai.openapi;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Created by ZhangJun on 2020/07/24
 * 订单查询 接口级请求参数
 *
 * @author ZhangJun
 */
public class OrderQueryRequest implements Serializable {

    /**
     * 支付类型 如 微信支付 010 支付宝支付 020
     * 是
     */
    private String payType;

    /**
     * 在企迈支付后台生成的唯一商户号（注意:内部接口必填，对外接口header头部qm-app-info二选一)
     * 否
     */
    private String merchantNo;

    /**
     * POS终端生成的唯一外部订单号
     * 是
     */
    private String terminalTrace;

    /**
     * 终端交易时间，yyyyMMddHHmmss ，全局统一时间格式
     * 是
     */
    @JSONField(format = "yyyyMMddHHmmss")
    private LocalDateTime terminalTime;

    /**
     * 当前支付终端流水号
     * 是
     */
    private String payTrace;

    /**
     * 企迈内部订单号
     * 是
     */
    private String outTradeNo;

    /**
     * 终端号
     * 是
     */
    private String terminalNo;

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getTerminalTrace() {
        return terminalTrace;
    }

    public void setTerminalTrace(String terminalTrace) {
        this.terminalTrace = terminalTrace;
    }

	public LocalDateTime getTerminalTime() {
		return terminalTime;
	}

	public void setTerminalTime(LocalDateTime terminalTime) {
		this.terminalTime = terminalTime;
	}

	public String getPayTrace() {
        return payTrace;
    }

    public void setPayTrace(String payTrace) {
        this.payTrace = payTrace;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getTerminalNo() {
        return terminalNo;
    }

    public void setTerminalNo(String terminalNo) {
        this.terminalNo = terminalNo;
    }
}
